package com.lc.YYGH.hosp.repository;

import com.lc.YYGH.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
  Schedule findByHoscodeAndHosScheduleId(String hoscode,String scheduleId);
  List<Schedule> findByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);


}
